package com.chenxin.interact.controller;

import com.chenxin.common.core.controller.BaseController;
import com.chenxin.common.core.page.TableDataInfo;
import com.chenxin.interact.domain.vo.SapToWmsPoDtVO;
import com.chenxin.interact.service.ISapToWmsPoDtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/interact/sapToWmsPoDt")
public class SapToWmsPoDtController extends BaseController {
    @Autowired
    private ISapToWmsPoDtService sapToWmsPoDtService;

    /**
     * 查询采购订单信息
     */
    @PreAuthorize("@ss.hasPermi('wms:sapToWmsPoDt:list')")
    @GetMapping("/list")
    public TableDataInfo list(SapToWmsPoDtVO dtVo) {
        startPage();
        List<SapToWmsPoDtVO> list = sapToWmsPoDtService.selectSapToWmsPoDtList(dtVo);
        return getDataTable(list);
    }
}
